* don't compile serial_unix.cc on mac.
* remove unnecessary conditional in serial_unix.cc
File is no longer in SOURCES for mac, so we don't need to use a
conditional to skip the contents on mac.
SOURCES += processwait.cc
SOURCES += upgrade.cc
SOURCES += version_mismatch.cc
-macx:SOURCES += serial_mac.cc
-unix:SOURCES += serial_unix.cc
-windows:SOURCES += serial_win.cc
+unix:!mac {
+ SOURCES += serial_unix.cc
+} else:mac {
+ SOURCES += serial_mac.cc
+} else:windows {
+ SOURCES += serial_win.cc
+}
HEADERS += aboutdlg.h
HEADERS += advdlg.h
// USA.
//
#include "mainwindow.h"
-#if !defined (Q_OS_MAC) // FIXME: find a better way to hide this on Mac.
#ifdef HAVE_UDEV
#include <libudev.h>
}
}
}
-
-#endif